package com.test.domain;

import java.util.Date;
import java.util.Set;

/**
 * 版块下的主题帖
 * @author Administrator
 *
 */
public class Topic extends Article{
	/*普通帖*/
	public static final int TYPE_NORMAL=0; 
	//精华帖
	public static final int TYPE_BEST=1;
	//置顶帖
	public static final int TYPE_TOP=2;
	private String title;
	private int type;//贴子的类别（置顶、精华、普通）
	
	//一个主贴需要属于某个版块,与版块是多对一。
	private Forum forum;
	//一个主帖下有多个回复
	private Set<Reply> replies;
	//为了方便统计一个主贴的回复数
	private int replyCount;
	//最新回复
	private Reply lastReply;
	//最后更新时间
	private Date lastUpdateTime;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public Forum getForum() {
		return forum;
	}
	public void setForum(Forum forum) {
		this.forum = forum;
	}
	public Set<Reply> getReplies() {
		return replies;
	}
	public void setReplies(Set<Reply> replies) {
		this.replies = replies;
	}
	public int getReplyCount() {
		return replyCount;
	}
	public void setReplyCount(int replyCount) {
		this.replyCount = replyCount;
	}
	public Reply getLastReply() {
		return lastReply;
	}
	public void setLastReply(Reply lastReply) {
		this.lastReply = lastReply;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
}
